草庐IT

Running Gradle task ‘assembleDebug‘

全部标签

ModuleNotFoundError: No module named ‘Multiscaledeformableattention‘

 在实现DINODetection方法时,我们可能会遇到以上问题。因为在DeformableAttention模块,为了加速,需要自己去编译这个模块。如果你的环境变量中能够找到cuda路径,使用正确的torch版本和cuda版本的话,这个问题很容易解决。(ps:一般情况下,cuda会安装在/usr/local文件夹下,但是很多情况下,虽然cuda可以使用,但是你可能就是无法找到cuda路径)但是,如果你在一个集群中,可能找不到cuda路径,那么编译起来就困难多了。#找cuda环境nvcc-Vwhereiscuda我在集群中来编译这个模块,编译源文件:https://github.com/IDE

连接MySQL的10060错误:Can‘t connect to MySQL server on ‘root‘(10060)

问题描述:昨天启动MySQL还一切正常,但在今天打开MySQL后突然出现,启动并输入密码后,直接闪退;解决过程:1、Can'tconnecttoMySQLserveron'localhost'(10061)",就说明你的MySQL还没有启动;因此在输入密码后,才会退出;2.以管理员身份打开命令提示符:3、用cd命令将目录切换至mysql安装目录MySQLServer的bin目录下;(注意:Win11与Win10切换到D盘的命令不同)4、然后在bin目录下再输入命令:mysqld.exe-install5、页面输出:Servicesuccessfullyinstalled,表示MySQL服务成功

git lfs 完美解决 Use `git lfs logs last` to view the log.error: external filter ‘git-lfs filter-proces

gitlfs完美解决Usegitlfslogslasttoviewthelog.error:externalfilter‘git-lfsfilter-process’failedfatal:ice_text.model:smudgefilterlfsfailedwarning:Clonesucceeded,butcheckoutfailed.Youcaninspectwhatwascheckedoutwith'gitstatus’andretrywith'gitrestore--source=HEAD问题:用gitlfs或者git下载github项目失败报错:Clonesucceeded,bu

python报错:AttributeError: ‘ImageDraw‘ object has no attribute ‘textbbox‘

总结原因:1、pillow没有安装或者版本过低(全网很容易搜到解决方案)检查方法:打开cmd→piplist,得到如下图,检查是否有pillow以及查看版本。如果显示pillow版本与对应python版本不符合,则需卸载pillow重新下载。如,python版本如果是3.9,对应的pillow需要是8.0~8.3.1  2、对应编写的环境下没有安装pillow或者版本过低!!!如果经过以上检查,pillow版本无误,但运行还是显示报错,是因为pillow没有安装到对应的编写环境,比如如果是用jupyter,就要检查jupyter环境下的pillow;如果使用pycharm,就要检查pychar

ERROR: pip‘s dependency resolver does not currently take into account all the packages 的解决方法

一、问题分析博主在PyCharm中使用pip命令pipinstall-rrequirements.txt-ihttps://pypi.tuna.tsinghua.edu.cn/simple安装项目所需的依赖包,出现:ERROR:pip’sdependencyresolverdoesnotcurrentlytakeintoaccountallthepackagesthatareinstalled.Thisbehaviouristhesourceofthefollowingdependencyconflicts.anaconda-project0.9.1requiresruamel-yaml,wh

深度剖析问题:Could not run ‘torchvision::nms‘ with arguments from the ‘CUDA‘ backend.

问题:使用YOLOv5进行测试的时候,报错:Couldnotrun'torchvision::nms'withargumentsfromthe'CUDA'backend.(如下图所示) 解决方法:(1)按照网上绝大多数的做法,重新安装torch和torchvision,我的另外一篇博客有讲解,注意CUDA、torch、torchvision和其他可能的安装包的版本要对应,链接直达:https://blog.csdn.net/qq_54185421/article/details/124759003?spm=1001.2014.3001.5501https://blog.csdn.net/qq_

Spring Boot报错Failed to bind properties under ‘‘ to com.zaxxer.hikari.Hikari DataSource

最近在使用springboot时报了个错Failedtobindpropertiesunder''tocom.zaxxer.hikari.HikariDataSource,经过分析和排查,最终将处理办法记录下来,并分享给大家。问题描述在使用SpringBoot连接MySQL或其他数据库时,出现以下错误:***************************APPLICATIONFAILEDTOSTART***************************Description:Failedtobindpropertiesunder''tocom.zaxxer.hikari.HikariDat

undefined reference to `dlopen‘ ‘SSL_library_init‘ `X509_certificate_type‘

使用Crow的时候需要注意crow依赖asio依赖OpenSSL,asio要求1.22以上版本,我使用的是1.26.0;这个版本的asio要求OpenSSL是1.0.2,其他版本我得机器上编不过,ubuntu上默认带的OpenSSL是1.1.1;所以我下载了OPENSSL1.2.0重装,地址:https://www.openssl.org/source/old/编译cpp启用Crow的SSL时会出现一些问题:比如:1undefinedreferenceto`SSL_library_init’出现这个提示需要在编译时指定链接crypto和ssl库2undefinedreferenceto`dlo

【vue】:Module not found: Error: Can‘t resolve ‘element-ui/lib/theme-chalk/fonts/index.css‘ in ‘F:\elk

问题:【vue】:Modulenotfound:Error:Can'tresolve'element-ui/lib/theme-chalk/fonts/index.css'in'F:\elk-components\packages\blindBox\src'解决办法:下面有几种解决办法,一个一个看下去,可能是其中某一个问题,依次排除1.找不到依赖,路径问题查看自己项目包的安装路径,看看是否是因为包更新后文件名产生了迭代,然后更新路径名称。如:  就需要把:import'element-ui/lib/theme-default/index.css'改为import'element-ui/lib/

‘org.elasticsearch.client.RequestOptions$Builder.removeHeader(java.lang.String)‘

学习官方文档的Java-api,习惯用Spring-boot开发,结果使用的时候遇到java.lang.NoSuchMethodError:'org.elasticsearch.client.RequestOptions$Builderorg.elasticsearch.client.RequestOptions$Builder.removeHeader(java.lang.String)'这个问题。各种搜索发现可能是依赖版本问题,编译时的依赖版本和运行时的不一样,找不到这个方法。后来用mvndependency:tree打印的依赖树发现elasticsearch-rest-client的版本